﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Group.FriendsGroups" %>
<asp:Literal ID="litCount" Text="10" runat="server" Visible="false"/>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("GP001")%></h1>
							</div>
							<div class="submenuN_button" style="top:30"><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a class="naddbtn btnspec" href="/groups/create-group.htm" style="text-decoration:none"><%}else{ %><a class="naddbtn btnspec" href="#" onclick="NotAffirm()" style="text-decoration:none"><%} %><span>&nbsp;&nbsp;&nbsp;<%=GetText("GP200")%>&nbsp;&nbsp;&nbsp;</span></a></div>
						</div>
					</div>
				</div>
				<div>
						<ul class="sort_sel">
							<li class="unselATags first"><a href="<%=WWWHost %>/groups/my-groups.htm"><span><%=GetText("AS144")%></span></a></li>
							<li class="selATags"><a href="javascript:void(0);"><span><%=GetText("AS145")%></span></a></li>
						</ul>
						<div class="clear"></div>
				</div>
				<div class="Center9001n">
					<div class="Center9001Right">
						<div class="Center9001Content">
						<div class="group_area">
							<p><%=GetText("GP005",new string[]{RecordCount.ToString()})%></p>
							<div id="myList">
								<asp:DataList ID="gList" RepeatColumns="2" RepeatDirection="Horizontal" runat="server">
									<ItemTemplate>
										<div class="group_friend_list">
											<div class="group_friend_av">												
												<div class="pic50"><%#Eval("ImgUrlPath").ToString() == "" ? "<a class='photo_50' href='" + WWWHost + "/groups/" + Eval("GID").ToString() + "'><img src=\"/Images/No_pic100.gif\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) + "\"/></a>" : "<a class='photo_50' href='" + WWWHost + "/groups/" + Eval("GID").ToString() + "'><img src=\"/UploadImages/Groups/" + Eval("GroupID").ToString() + "_3.jpg\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) + "\"/></a>"%></div>
											</div>
											<div class="group_friend_info">
												<div class="text14 word_break"><a href="<%#WWWHost %>/groups/<%#Eval("GID").ToString()%>" title="<%#HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) %>"><%#Lx.Web.Common.UI.Globals.GetString(Eval("Title").ToString(),50)%></a></div>
												<div class="grey11 margin5">
													<%=GP051%>: 
													<asp:Repeater ID="rptChild" runat="server">
														<ItemTemplate>
															<a href="/<%#Eval("Memberno")%>.htm"><%#HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString())%></a>&nbsp;&nbsp;
														</ItemTemplate>
													</asp:Repeater>
												</div>
											</div>							
											<div class="clear"></div>
										</div>
									</ItemTemplate>
								</asp:DataList> 
								<div class="clear"></div>
							</div>
							<div id="divPage" class="page_num">
								<%=CreatePageNav(RecordCount, int.Parse(litCount.Text), PageIndex, "",
									string.Format("<span class='page_none grey10'><a href='{1}/groups/friends-groups-$I$.htm'>{0}</a></span>&nbsp;", HttpUtility.UrlEncode(GetText("Prev")), WWWHost),
									"",
									string.Format("<span class='page_none grey10'><a href='{1}//groups/friends-groups-$I$.htm'>{0}</a></span>&nbsp;", HttpUtility.UrlEncode(GetText("Next")), WWWHost),
									string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
									string.Format("<span class='page_none grey10'><a href='{0}//groups/friends-groups-$I$.htm'>$I$</a></span>&nbsp;", WWWHost)
								)%>									
							</div>
						</div>
						</div>
					</div>
					<div class="Center9001Left">
						<div class="right_layerA">
							<%if(rptTopic.Items.Count>0) {%>
							<div class="layer_contentA">
								<h4><%=GetText("GP022")%></h4>
								<div class="layer_contentA5">
								<asp:Repeater ID="rptTopic" runat="server">
									<ItemTemplate>
										<div class="common_right_pic_list">
											<div class="common_right_pic_listPIC"><div class="picsp"><a class="photo_sp" href="<%#LoginHost%>/<%#Eval("Memberno") %>.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\"/>" : "<img src=\"" + Eval("Avatar").ToString()+ "\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\"/>"%></a></div></div>
											<div class="common_right_pic_listCON"><a href="<%#WWWHost%>/groups/<%#Eval("GID") %>/topic/<%#Eval("FID") %>.htm"><%#HttpUtility.HtmlAttributeEncode(Eval("Title").ToString())%></a> <span class="grey12" dir="ltr">(<%#Eval("Topics")%>)</span></div>
											<div class="clear"></div>
										</div>
									</ItemTemplate>
								</asp:Repeater>	
								</div>
							</div>
							<%} %>
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>